<?php

namespace app\common\activity;

/**
 * 入口文件，活动触发类
 */
class Index extends Base
{
	//入口方法 name为活动名称
	public function index() {
		$args = func_get_args();
		$name = array_shift($args);

		$activity = loader()->loadAny('activity', $name);
		
		if($activity) {
			return $activity->activity(...$args);
		} else {
			return $this->activity(...$args);
		}
	}
}
